home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / adatu200.zip / FIB.ANS (.png) < prev    next >
ANSI Art File  |  1991-03-25  |  261b  |  640x160  |  1-bit (2 colors)
Labels: text | screenshot | font
OCR: Our solution to Outside Assignment 4 (in FIB. ANS): separate (FIBTEST) function FIB(N : in POSITIVE) return POSITIVE is ANSWER : POSITIVE := 1; begin if N > 2 then ANSWER := FIB(N - 1) + FIB(N - 2); end if ; return ANSWER; end FIB;